package freespiritsocial.io.user.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import freespiritsocial.io.user.R
import freespiritsocial.io.user.data.model.bean.Tag
import freespiritsocial.io.user.databinding.ItemSearchTagBinding
import java.util.*

/**
 * 搜索標簽适配器
 */
class SearchTagAdapter(
    data: ArrayList<Tag> = arrayListOf(),
    layoutResIdRes: Int = R.layout.item_search_tag
):
    BaseQuickAdapter<Tag,BaseDataBindingHolder<ItemSearchTagBinding>>(layoutResIdRes,data) {
    var boldText = ""
    override fun convert(holder: BaseDataBindingHolder<ItemSearchTagBinding>,item: Tag) = with(holder.dataBinding) {
        this?.tvTagName?.text = item.tagName
    }
}